//
//  ST_BTAPI.swift
//  SmartKeeperTwo NICE
//
//  Created by DouLei on 2017/5/28.
//  Copyright © 2017年 DouLei. All rights reserved.
//

import Foundation
import SwiftyUserDefaults

enum APIType:Int {
    case  release = 0,debug,developerC,developerX,developerS
}



//MARK: - NIMSDK Const

//云信Key 【正式服】
fileprivate let releaseNimAppID = "***"
//云信Key 【测试服】
fileprivate let debugNimAppID = "***"




//MARK: - Base
extension String{
    static func BTappendUrl(str:String) -> String {
        return String(format: "%@%@",PH.BASE_URL,str)
    }
}



let PH = ST_BTVideoURLDispatcher.shared

class ST_BTVideoURLDispatcher{
    
    static let shared = ST_BTVideoURLDispatcher()
    
    //    fileprivate let testServiceType = APIType.debug
    
    lazy var apiURLType:APIType = {
#if DEBUG
        //        if Defaults[.releaseAppApi]{
        return APIType.release
        //        }else{
        //            return APIType.debug
        //        }
#else
        return APIType.release
#endif
    }()
    
    
    lazy var BASE_URL:String = {
        var str:String
        switch apiURLType {
        case .debug:
            str = "http://dev.jingniaoapps.com/"
            
            
        case .developerC:
            str = "http://192.168.4.21133:8079/"
        case .developerX:
            str = "http://192.168.4.1893:807934/"
        case .developerS:
            str = "http://192.168.1.127/"
        default:
            str = "https://www.jingniaoapps.com/"
        }
        str = "https://xiaosong.picp.vip/";
        str = "http://192.168.110.100/"
        return str
    }()
    
    
    lazy var nimAppID:String = {
        
        //        if PH.apiURLType == APIType.release{
        return releaseNimAppID
        //        }
        //            return debugNimAppID
    }()
    
    
    
    //    lazy var TCP_HOST = "42.193.42.123"
    //
    //    lazy var TCP_PORT:UInt16 = {
    //        #if DEBUG
    //        if Defaults[.releaseAppApi]{
    //            return 2101
    //        }else{
    //            return 1101
    //        }
    //        #else
    //            return 2101
    //        #endif
    //    }()
    
    
    
    lazy var myPhotosApi = String.BTappendUrl(str: "vdsns/member/getPhotoAlbum/v2.json")
    
    lazy var addMyPhotoApi = String.BTappendUrl(str: "vdsns/member/addPhotoAlbum/v2.json")
    
    lazy var deleteMyPhotoApi = String.BTappendUrl(str: "vdsns/member/delPhotoAlbum/v2.json")
    
    lazy var sortMyPhotoApi = String.BTappendUrl(str: "vdsns/member/photoAlbumSort/v2.json")
    
    lazy var sortMyPeculiarityApi = String.BTappendUrl(str: "vdsns/feature/saveSortList/v2.json")
    
    
    lazy var fetchUserGeneralInfoApi = String.BTappendUrl(str: "vdsns/member/homepageData/v2.json")
    
    
    lazy var fetchMyInfoOptionsApi = String.BTappendUrl(str: "vdsns/basic/getChooseItem/v2.json")
    
    
    lazy var MyNewInfoApi = String.BTappendUrl(str: "vdsns/member/myIndex/v2.json")
    
    lazy var otherPeopleNewInfoApi = String.BTappendUrl(str: "vdsns/memberV34/herIndex2/v2.json")
    
    lazy var FetchOccupationApi = String.BTappendUrl(str: "vdsns/basic/getJobItem/v2.json")
    
    lazy var getIntroTmpApi = String.BTappendUrl(str: "vdsns/member/getIntroTmp/v2.json")
    
    lazy var likePeculiarityApi = String.BTappendUrl(str: "vdsns/feature/like/v2.json")
    
    lazy var unlikePeculiarityApi = String.BTappendUrl(str: "vdsns/feature/unlike/v2.json")
    
    lazy var refundLikeListApi = String.BTappendUrl(str: "vdsns/like/refundLikeList/v2.json")
    
    
    lazy var ignoreLikeListApi = String.BTappendUrl(str: "vdsns/meet/getIgnoreList/v2.json")
    
    lazy var featureDetailUserListApi = String.BTappendUrl(str: "vdsns/featureV13/detailUserContent/v2.json")
    
    
    lazy var peculiarityDetailUserContentApi = featureDetailUserListApi
    
    
    lazy var hotPeculiarityListApi = String.BTappendUrl(str: "vdsns/featureV4/typeList/v2.json")
    
    
    lazy var modifyRemarkApi = String.BTappendUrl(str: "vdsns/feature/saveRemark/v2.json")
    
    
    lazy var userPeculiarityDetailApi = String.BTappendUrl(str: "vdsns/featureV13/detailUser/v2.json")
    
    
    lazy var thumbUpPeculiarityBarDataApi = String.BTappendUrl(str: "vdsns/featureV5/getThumbImg/v2.json")
    
    lazy var thumbUpApi = String.BTappendUrl(str: "vdsns/index/thumbUp/v2.json")
    
    lazy var thumbDownApi = String.BTappendUrl(str: "vdsns/index/thumbDown/v2.json")
    
    lazy var thumbUpByEmojiApi = String.BTappendUrl(str: "vdsns/featureV5/thumbUp/v2.json")
    
    
    lazy var myIndexLikeFeatureListApi = String.BTappendUrl(str: "vdsns/member/myIndexLikeFeatureList/v2.json")
    
    lazy var herIndexLikeFeatureListApi = String.BTappendUrl(str: "vdsns/member/herIndexLikeFeatureList/v2.json")
    
    
    //    lazy var peculiarityListApi = String.BTappendUrl(str: "vdsns/feature/addListType/v2.json")
    
    
    lazy var peculiarityListForRegisterApi = String.BTappendUrl(str: "vdsns/feature/addListTypeV2/v2.json")
    
    lazy var peculiarityChildListApi = String.BTappendUrl(str: "vdsns/feature/addList/v2.json")
    
    
    lazy var pushFeatureApi = String.BTappendUrl(str: "vdsns/feature/add/v2.json")
    
    lazy var pushFeatureMultiResourceApi = String.BTappendUrl(str: "vdsns/feature/publishMore/v2.json")
    
    lazy var personalSpaceApi = String.BTappendUrl(str: "vdsns/memberV56/personalSpace/v2.json")
    
    
    lazy var aiMycenterLoadLovedMoreListApi = String.BTappendUrl(str: "vdsns/memberV4/getLikeMembers/v2.json")
    
    lazy var PeculiaritySquareApi = String.BTappendUrl(str: "vdsns/featureV13/index/v2.json")
    
    lazy var RecommendPeculiarityApi = String.BTappendUrl(str: "vdsns/featureV13/sameDetailUserContent/v2.json")
    
    
    lazy var RecommendPersonApi = String.BTappendUrl(str: "vdsns/member/samePersonal/v2.json")
    
    lazy var RecommendPersonAppendDataApi = String.BTappendUrl(str: "vdsns/memberV34/herIndexFeatureMatch/v2.json")
    
    lazy var deltePeculiarityApi = String.BTappendUrl(str: "vdsns/feature/deleteContentV2/v2.json")
    
    
    
    
    lazy var fetchST_PeculiarityModelApi = String.BTappendUrl(str: "vdsns/feature/detail/v2.json")
    
    lazy var detailPeculiarityNodesApi = String.BTappendUrl(str: "vdsns/feature/detailNode/v2.json")
    
    
    lazy var fetchCurrPeculiarityNodesApi = String.BTappendUrl(str: "vdsns/feature/detailParent/v2.json")
    
    
    lazy var feedBackStatusApi = String.BTappendUrl(str: "vdsns/feedback/isAnswer/v2.json")
    
    
    lazy var answerFeedbackApi = String.BTappendUrl(str: "vdsns/feedback/answer/v2.json")
    
    
    
    lazy var peculiaritySquarelistNodesApi = String.BTappendUrl(str: "/vdsns/featureV13/typeList/v2.json")
    
    lazy var matchedPersonListApi = String.BTappendUrl(str: "vdsns/message/match/v2.json")
    
    lazy var matchedMomentsApi = String.BTappendUrl(str: "vdsns/index/match/v2.json")
    
    lazy var homeRecommendApi = String.BTappendUrl(str: "vdsns/indexV7/recommend/v2.json")
    
    lazy var getLikeNumNewApi = String.BTappendUrl(str: "vdsns/like/getLikeNum/v2.json")
    
    //    lazy var helperBackMsgApi = String.BTappendUrl(str: "vdsns/basic/helperBackMsg/v2.json")
    
    
    lazy var likeIndexApi = String.BTappendUrl(str: "vdsns/likeV6/home/v2.json")
    
    lazy var likePersonApi = String.BTappendUrl(str: "vdsns/indexV7/like/v2.json")
    
    lazy var unlikePersonApi = String.BTappendUrl(str: "vdsns/index/dislike/v2.json")
    
    //喜欢页面特殊 调用喜欢
    lazy var receiveLikePersonApi = String.BTappendUrl(str: "vdsns/like/receive/v2.json")
    //喜欢页面特殊 调用不喜欢
    lazy var refundPersonApi = String.BTappendUrl(str: "vdsns/like/refund/v2.json")
    
    //重新喜欢 单独调用
    lazy var receiveAgainPersonApi = String.BTappendUrl(str: "vdsns/like/receiveAgain/v2.json")
    
    
    
    lazy var registerAvatarApi254 = String.BTappendUrl(str: "vdsns/memberV51/setRegisterAvatar/v2.json")
    
    lazy var newRegisterInfoApi = String.BTappendUrl(str: "vdsns/memberV6/registerInfo/v2.json")
    
    
    lazy var changeAvatarApi = String.BTappendUrl(str: "vdsns/memberV4/registerInfo/v2.json")
    
    lazy var registerAvatarApi = newRegisterInfoApi
    
    lazy var registerFeatureListApi = String.BTappendUrl(str: "vdsns/feature/registerListV2/v2.json")
    
    
    lazy var selectedFeatureListApi = String.BTappendUrl(str: "vdsns/member/saveRegisterFeatures/v2.json")
    
    
    lazy var faceMatchApi = String.BTappendUrl(str: "vdsns/memberV4/faceMatch/v2.json")
    
    
    //MARK:- login register Api
    
    lazy var loginApi = String.BTappendUrl(str: "vdsns/OpenApiV70/LoginOrRegister/v2.json")
    
    lazy var fetchIMTokenApi = String.BTappendUrl(str: "vdsns/WyIm/getToken/v2.json")
    
    lazy var reportIMStatusApi = String.BTappendUrl(str: "vdsns/WyIm/sendMsg/v2.json")
    
    lazy var logoutResetApi = String.BTappendUrl(str: "vdsns/indexV4/logoutReset/v2.json")
    
    
    lazy var registerStepApi = String.BTappendUrl(str: "vdsns/Open_Api/registerStep/v1.json")
    
    
    lazy var showApplePriceApi = String.BTappendUrl(str: "vdsns/payOrder/showApplePriceV2/v2.json")
    
    lazy var sendReceiptApi = String.BTappendUrl(str: "vdsns/payOrder/appleCheckV2/v2.json")
    
    
    lazy var sendTianReceiptApi = String.BTappendUrl(str: "vdsns/payOrderV73/appleCheckV2/v2.json")
    
    lazy var sendCaptchaApi = String.BTappendUrl(str: "vdsns/Open_Api/SendSms/v1.json")
    
    lazy var sendCaptchaForBindApi = String.BTappendUrl(str: "vdsns/basic/sendMobileCode/v2.json")
    
    lazy var checkPhoneNumberApi = String.BTappendUrl(str: "vdsns/basic/checkMobileCode/v2.json")
    
    lazy var checkCaptchaApi = String.BTappendUrl(str: "vdsns/Open_Api/CheckSms/v1.json")
    
    
    lazy var uploadAvatarApi = String.BTappendUrl(str: "vdsns/member/uploadAvatar/v1.json")
    
    lazy var completeUserInfoApi = String.BTappendUrl(str: "vdsns/member/setInfo/v1.json")
    
    lazy var fetchSameCityDataApi = String.BTappendUrl(str: "vdsns/daily/sameCity/v2.json")
    
    
    lazy var profileAccountInfoApi = String.BTappendUrl(str: "vdsns/member/setInfoV4/v1.json")
    
    lazy var registerSaveAccountInfoApi = String.BTappendUrl(str: "vdsns/V3Index/updateUserInfo/v1.json")
    
    
    lazy var indexApi = String.BTappendUrl(str: "vdsns/V5Index/index/v1.json")
    
    lazy var getUnreadBarrageApi = String.BTappendUrl(str: "vdsns/V4Index/getUnreadBarrages/v1.json")
    
    
    lazy var getFlipTipsApi = String.BTappendUrl(str: "vdsns/V3Index/getFlipTips/v1.json")
    
    
    lazy var getBarrageApi = String.BTappendUrl(str: "vdsns/video/getBarrageV2/v1.json")
    
    lazy var sendBarrageApi = String.BTappendUrl(str: "vdsns/video/send_barrage/v1.json")
    
    
    
    lazy var pushVideoApi = String.BTappendUrl(str: "vdsns/video/photographyV2/v1.json")
    
    lazy var videoParticularApi = String.BTappendUrl(str: "vdsns/video/getVideo/v1.json")
    
    
    lazy var testPushVideoApi = String.BTappendUrl(str: "vdsns/test/t/v1.json")
    
    
    lazy var setCoverVideoApi = String.BTappendUrl(str: "vdsns/member/setCoverVideo/v1.json")
    
    lazy var getRandomBgmApi = String.BTappendUrl(str: "vdsns/basis/getRandomBgm/v1.json")
    
    lazy var filterDefaultApi = String.BTappendUrl(str: "vdsns/V3Index/indexSearch/v1.json")
    
    
    lazy var likeSomebadyApi = String.BTappendUrl(str: "vdsns/index/like/v1.json")
    
    lazy var ignoreSomebadyApi = String.BTappendUrl(str: "vdsns/index/unLike/v1.json")
    
    /**
     包括基础信息 小助手 点赞 评论 关注 等
     */
    lazy var usersProfileListApi = String.BTappendUrl(str: "vdsns/basic/getImUserInfoV2/v2.json")
    
    lazy var getHelperInfoApi = String.BTappendUrl(str: "vdsns/basic/getHelper/v2.json")
    
    lazy var banStateApi = String.BTappendUrl(str: "vdsns/V5Index/getUserBlockState/v1.json")
    
    //    lazy var startTalkApi = String.BTappendUrl(str: "vdsns/messageV32/sendTalk/v2.json")
    
    
    lazy var getTalkMemberInfoApi = String.BTappendUrl(str: "vdsns/messageV57/getTalkMemberInfo/v2.json")
    
    lazy var mutualListApi = String.BTappendUrl(str: "vdsns/message/talk/v2.json")
    
    lazy var likeMeListApi = String.BTappendUrl(str: "vdsns/V3Index/likedList/v1.json")
    
    lazy var myLoveListApi = String.BTappendUrl(str: "vdsns/V3Index/likeList/v1.json")
    
    lazy var musicListApi = String.BTappendUrl(str: "vdsns/Basis/bgm/v1.json")
    
    lazy var myIndexApi = String.BTappendUrl(str: "vdsns/V3Index/myIndex/v1.json")
    
    
    lazy var fetchUserBaseDataApi = String.BTappendUrl(str: "vdsns/member/index/v1.json")
    
    
    
    lazy var fetchUserOtherInfoApi = String.BTappendUrl(str: "vdsns/roomConf/cfg/v2.json")
    
    lazy var bootBaseConfigApi = String.BTappendUrl(str: "vdsns/versionConf/getConf/v2.json")
    
    /**
     必须要先调用 bootBaseConfigApi 才能调用接口，
     notRestrictedBaseConfigAPISets 集合里面 不需要 bootBaseConfigApi接口返回数据再请求
     */
    lazy var notRestrictedBaseConfigAPISets:Set<String> = {
        return [bootBaseConfigApi,matchedPersonListApi,fetchEmojiPackageApi,getCoinUsageConfApi,fetchGiftModuleBaseApi,usersProfileListApi]
    }()
    
    lazy var answerSurveyApi = String.BTappendUrl(str: "vdsns/survey/answer/v1.json")
    
    lazy var fetchSurveyBaseDataApi = String.BTappendUrl(str: "vdsns/survey/getQuestion/v1.json")
    
    
    lazy var tagsApi = String.BTappendUrl(str: "vdsns/basis/tag/v1.json")
    
    lazy var modifyTagsApi = String.BTappendUrl(str: "vdsns/index/addTag/v1.json")
    
    //新增接口
    lazy var getPersonalInfoApi = String.BTappendUrl(str: "vdsns/V3Index/getPersonalInfo/v1.json")
    
    
    lazy var modifyUserInfoApi = String.BTappendUrl(str: "vdsns/member/update/v1.json")
    
    
    lazy var modifyUserGeneralInfoApi = String.BTappendUrl(str: "vdsns/memberV11/updateUserInfo/v2.json")
    
    lazy var barrageCountApi = String.BTappendUrl(str: "vdsns/video/getBarrageCount/v1.json")
    
    
    lazy var fetchRecordTipsApi = String.BTappendUrl(str: "vdsns/V3Index/getCameraTips/v1.json")
    
    lazy var barrageListApi = String.BTappendUrl(str: "vdsns/member/getUserBarrage/v1.json")
    
    
    lazy var deleteBarrageApi = String.BTappendUrl(str: "vdsns/video/delBarrage/v1.json")
    
    
    lazy var reportVideoApi = String.BTappendUrl(str: "vdsns/member/reportVideo/v1.json")
    
    lazy var deleteVideoApi = String.BTappendUrl(str: "vdsns/video/deleteVideo/v1.json")
    
    
    lazy var reportUserApi = String.BTappendUrl(str: "vdsns/member/reportUser/v1.json")
    
    
    lazy var moreVideoApi = String.BTappendUrl(str: "vdsns/index/homeVideoMore/v1.json")
    
    lazy var fetchsuperExposureNumApi = String.BTappendUrl(str: "vdsns/index/superExposureNum/v1.json")
    
    
    lazy var shumeiTextPostApi = String.BTappendUrl(str: "vdsns/shumeiV67/text/v2.json")
    
    lazy var msgSentRecordApi = String.BTappendUrl(str: "vdsns/shumeiV70/sendMsgRecord/v2.json")
    
    
    lazy var fetchQNApi = String.BTappendUrl(str: "vdsns/basis/getNewQiniuToken/v1.json")
    
    lazy var replaySuperLikeApi = String.BTappendUrl(str: "vdsns/index/superLikeSure/v1.json")
    
    
    
    lazy var sendSuperLikeApi = String.BTappendUrl(str: "vdsns/index/superLike/v1.json")
    
    
    lazy var removeMatchApi = String.BTappendUrl(str: "vdsns/message/removeMatch/v2.json")
    
    
    lazy var matchVideoApi = String.BTappendUrl(str: "vdsns/Basis/video/v1.json")
    
    lazy var pullLikeListApi = String.BTappendUrl(str: "vdsns/index/myLikes/v1.json")
    
    
    lazy var fetchOptionTagsApi = String.BTappendUrl(str: "vdsns/V3Index/getPersonalTag/v1.json")
    
    
    
    //MARK:- 腾讯云点播
    lazy var fetchCloudSignature = String.BTappendUrl(str: "vdsns/Basis/getDibblingToken/v1.json")
    
    
    
    
    //MARK: - 2.1.3 Api
    
    lazy var fetchAttractApi = String.BTappendUrl(str: "vdsns/indexV3/attractV2/v2.json")
    
    lazy var fetchNewGirlsApi = String.BTappendUrl(str: "vdsns/indexV3/newMember/v2.json")
    
    lazy var fetchActiveGirlsApi = String.BTappendUrl(str: "vdsns/indexV3/activeMember/v2.json")
    
    lazy var aiRecommendCardsApi = String.BTappendUrl(str: "vdsns/indexV37/recommend/v2.json")
    
    
    lazy var getReceiveThumbListApi = String.BTappendUrl(str: "vdsns/featureV34/getReceiveThumbList/v2.json")
    
    lazy var publishExampleListApi = String.BTappendUrl(str: "vdsns/featureV5/publishDemo/v2.json")
    
    
    //MARK: - 2.1.6
    lazy var apiLocation = String.BTappendUrl(str: "vdsns/ip/get/v2.json")
    
    lazy var getFindAndAgeApi = String.BTappendUrl(str: "vdsns/openData/getFindAndAge/v2.json")
    
    lazy var featureExampleListApi = String.BTappendUrl(str: "vdsns/openData/getFeature/v2.json")
    
    lazy var featureMemberPriceApi = String.BTappendUrl(str: "vdsns/payOrder/showApplePriceV2/v2.json")
    
    
    
    //MARK: - Version  2.1.7
    
    lazy var fetchAdvertImageApi = String.BTappendUrl(str: "vdsns/openData/getStartImg/v2.json")
    
    
    
    //MARK: - Version 2.2.1
    
    lazy var answerRegisterResearchApi = String.BTappendUrl(str: "vdsns/survey/answerRegister/v2.json")
    
    //拉黑
    lazy var banSomebadyApi = String.BTappendUrl(str: "vdsns/member/pullBack/v2.json")
    
    
    
    
    
    lazy var secondsTalkApi = String.BTappendUrl(str: "vdsns/message/puppetSendMsg/v2.json")
    
    
    //MARK: - Version 2.2.2
    lazy var attentionSomebadyApi = String.BTappendUrl(str: "vdsns/attention/do/v2.json")
    
    
    lazy var un_attentionSomebadyApi = String.BTappendUrl(str: "vdsns/attention/undo/v2.json")
    
    lazy var fetchFansListApi = String.BTappendUrl(str: "vdsns/attention/getFanList/v2.json")
    
    
    lazy var fetchFollowListApi = String.BTappendUrl(str: "vdsns/attention/getList/v2.json")
    
    
    lazy var peculiarityGroupDetailApi = String.BTappendUrl(str: "vdsns/feature12/groupContentDetail/v2.json")
    
    
    
    lazy var queryPecCommentsApi = String.BTappendUrl(str: "vdsns/feature12/getCommentList/v2.json")
    
    
    lazy var sendCommentApi = String.BTappendUrl(str: "vdsns/featureV13/sendComment/v2.json")
    
    lazy var thumbUpPeculiarityApi = String.BTappendUrl(str: "vdsns/feature12/thumbUp/v2.json")
    
    
    lazy var un_thumbUpPeculiarityApi = String.BTappendUrl(str: "vdsns/feature12/unThumbUp/v2.json")
    
    
    lazy var getThumbUpFeatureListApi = String.BTappendUrl(str: "vdsns/memberV12/getThumbUpFeatureList/v2.json")
    
    
    lazy var fetchPeculiarityGroupListApi = String.BTappendUrl(str: "vdsns/memberV12/likeFeatureDetail/v2.json")
    
    
    lazy var getReceiveCommentListApi = String.BTappendUrl(str: "vdsns/messageV34/getCommentList/v2.json")
    
    
    lazy var recommendSearchChoiceApi = String.BTappendUrl(str: "vdsns/basic/recommendSearchChoice/v2.json")
    
    
    
    
    lazy var recommendFeedApi = String.BTappendUrl(str: "vdsns/resonance/recommend/v2.json")
    
    lazy var attentionFeedApi = String.BTappendUrl(str: "vdsns/resonance/attention/v2.json")
    
    
    lazy var sameCityFeedApi = String.BTappendUrl(str: "vdsns/resonance/sameCity/v2.json")
    
    
    lazy var delGroupContentApi = String.BTappendUrl(str: "vdsns/featureV13/delGroupContent/v2.json")
    
    
    
    
    lazy var btBaseDataContentApi = String.BTappendUrl(str: "vdsns/basic/getIosBaseData/v2.json")
    
    
    
    //MARK: - Version 2.2.5
    
    
    
    lazy var recommendVideoApi = String.BTappendUrl(str: "vdsns/resonance/recommendVideo/v2.json")
    
    
    lazy var deleteCommentApi = String.BTappendUrl(str: "vdsns/featureV15/deleteComment/v2.json")
    
    
    
    lazy var meetYouListApi = String.BTappendUrl(str: "vdsns/meet/getListV2/v2.json")
    
    lazy var myFansListForMeetyoutApi = String.BTappendUrl(str: "vdsns/attentionV37/getFanList/v2.json")
    
    lazy var ignoreMeetApi = String.BTappendUrl(str: "vdsns/meet/ignore/v2.json")
    
    lazy var clearUnreadMeetApi = String.BTappendUrl(str: "vdsns/meet/clearMeetCount/v2.json")
    
    
    
    lazy var setOnlineModeApi = String.BTappendUrl(str: "vdsns/memberV19/setOnlineMode/v2.json")
    
    
    //    lazy var fetchGiftModuleBaseApi = String.BTappendUrl(str: "vdsns/openData/getGiftList/v2.json")
    
    lazy var fetchGiftModuleBaseApi = String.BTappendUrl(str: "vdsns/gift/getListV3/v2.json")
    
    lazy var getAppleCoinPriceBaseApi = String.BTappendUrl(str: "vdsns/payOrderV31/getAppleCoinPrice/v2.json")
    
    lazy var presentGuardSupplementApi = String.BTappendUrl(str: "vdsns/giftV58/sendGuard/v2.json")
    
    
    
    lazy var presentSmallGiftApi = String.BTappendUrl(str: "vdsns/giftV74/sendGoods/v2.json")
    
    lazy var presentNobleSmallGiftApi = String.BTappendUrl(str: "vdsns/giftV74/sendNobilityGift/v2.json")
    
    lazy var presentBlindBoxGiftApi = String.BTappendUrl(str: "vdsns/gift/sendBlindBox/v2.json")
    
    
    lazy var presentRoomGiftApi = String.BTappendUrl(str: "vdsns/roomGift/sendGift/v2.json")
    
    
    
    lazy var getAppleCoinPriceApi = String.BTappendUrl(str: "vdsns/payOrderV71/getAppleCoinPriceV1/v2.json")
    
    lazy var getGoodsRankApi = String.BTappendUrl(str: "vdsns/gift/getRank/v2.json")
    
    
    lazy var receiveGoodsHistoryApi = String.BTappendUrl(str: "vdsns/gift/getReceiveRecord/v2.json")
    
    
    lazy var inviteFaceApi = String.BTappendUrl(str: "vdsns/messageV31/inviteFace/v2.json")
    
    
    lazy var setShieldStateApi = String.BTappendUrl(str: "vdsns/memberV32/setShieldState/v2.json")
    
    
    
    lazy var bumpApi = String.BTappendUrl(str: "vdsns/featureV36/bump/v2.json")
    
    lazy var quickTalkApi = String.BTappendUrl(str: "vdsns/featureV36/quickTalk/v2.json")
    
    
    lazy var RecommendFeedV32Api = String.BTappendUrl(str: "vdsns/indexV57/recommend/v2.json")
    
    
    //MARK: - 2.3.3
    
    lazy var shareDataInfoApi = String.BTappendUrl(str: "vdsns/openData/getShareInfo/v2.json")
    
    lazy var blackListApi = String.BTappendUrl(str: "vdsns/MemberV33/blockList/v2.json")
    
    
    lazy var fetchEmojiPackageApi = String.BTappendUrl(str: "vdsns/emojiPack/getList/v2.json")
    
    
    
    
    lazy var uploadAddressBookApi = String.BTappendUrl(str: "vdsns/memberV33/addressBookSwitch/v2.json")
    
    
    lazy var getIntimacyLevelApi = String.BTappendUrl(str: "vdsns/gift/getIntimacyLevel/v2.json")
    
    
    lazy var fetchTalkIntimacyApi = String.BTappendUrl(str: "vdsns/messageV33/addTalkIntimacy/v2.json")
    
    
    
    lazy var recommendDailyApi = String.BTappendUrl(str: "vdsns/daily/recommend/v2.json")
    
    lazy var fetchDailyBaseListApi = String.BTappendUrl(str: "vdsns/daily/getBaseList/v2.json")
    
    
    
    
    lazy var pushDailyApi = String.BTappendUrl(str: "vdsns/daily/publish/v2.json")
    
    lazy var dailyDetailApi = String.BTappendUrl(str: "vdsns/daily/getDetail/v2.json")
    
    
    
    lazy var dailyCommentListApi = String.BTappendUrl(str: "vdsns/daily/getCommentList/v2.json")
    
    lazy var commentDailyApi = String.BTappendUrl(str: "vdsns/daily/sendComment/v2.json")
    
    
    
    
    lazy var fetchMyDailyMoreListApi = String.BTappendUrl(str: "vdsns/memberV34/getDailyList/v2.json")
    
    lazy var attentionDailyListApi = String.BTappendUrl(str: "vdsns/daily/attention/v2.json")
    
    
    lazy var sameCityDailyListApi = String.BTappendUrl(str: "vdsns/daily/sameCity/v2.json")
    
    
    lazy var thumbUpDailyApi = String.BTappendUrl(str: "vdsns/daily/thumbUp/v2.json")
    
    
    lazy var un_thumbUpDailyApi = String.BTappendUrl(str: "vdsns/daily/unThumbUp/v2.json")
    
    
    lazy var deleteDailyApi = String.BTappendUrl(str: "vdsns/daily/del/v2.json")
    
    
    
    lazy var setPrivacyValueApi = String.BTappendUrl(str: "vdsns/memberV36/setMemberInfo/v2.json")
    
    
    lazy var getCoinUsageConfApi = String.BTappendUrl(str: "vdsns/featureV36/getCoinUsageConf/v2.json")
    
    
    lazy var sameSexTalkApi = String.BTappendUrl(str: "vdsns/ShumeiV66/sameSexTalk/v2.json")
    
    
    
    
    lazy var ignoreMeetForLoveApi = String.BTappendUrl(str: "vdsns/attentionV37/ignore/v2.json")
    
    
    
    lazy var ignoreFollowListApi = String.BTappendUrl(str: "vdsns/attentionV37/getIgnoreList/v2.json")
    
    
    
    
    lazy var fetchPecGroupNameApi = String.BTappendUrl(str: "vdsns/feature/getDataByGroupId/v2.json")
    
    
    lazy var loginRewardApi = String.BTappendUrl(str: "vdsns/loginRewardV83/index/v2.json")
    
    lazy var getLoginGiftApi = String.BTappendUrl(str: "vdsns/loginRewardV57/signIn/v2.json")
    
    
    lazy var firendsDailyApi = String.BTappendUrl(str: "vdsns/dailyV50/getFriendData/v2.json")
    
    
    //    新的 喜欢 不 喜欢 重新喜欢
    lazy var likeActionV50Api = String.BTappendUrl(str: "vdsns/actionV72/like/v2.json")
    
    
    lazy var dislikeActionV50Api = String.BTappendUrl(str: "vdsns/actionV57/dislike/v2.json")
    
    lazy var relikeActionV50Api = String.BTappendUrl(str: "vdsns/actionV57/receiveLike/v2.json")
    
    
    lazy var payExampleListApi = String.BTappendUrl(str: "vdsns/payOrder/getIntoMemberPrice/v2.json")
    
    
    lazy var getReFeatureListApi = String.BTappendUrl(str: "vdsns/feature/getReFeature/v2.json")
    
    
    lazy var fetchConversionListApi = String.BTappendUrl(str: "vdsns/mall/goods/v2.json")
    
    lazy var myAliAccountApi = String.BTappendUrl(str: "vdsns/memberV55/getAliAccount/v2.json")
    
    lazy var setMyIncomeAccountApi = String.BTappendUrl(str: "vdsns/memberV55/setAliInfo/v2.json")
    
    lazy var exchangeByIncomeApi = String.BTappendUrl(str: "vdsns/mall/exchangeV2/v2.json")
    
    lazy var exchangeLogByIncomeApi = String.BTappendUrl(str: "vdsns/mall/exchangeLog/v2.json")
    
    lazy var outsideIncomeLogApi = String.BTappendUrl(str: "vdsns/h5/withdraw/v2.json")
    
    lazy var outsideIncomeLogEntityApi = String.BTappendUrl(str: "vdsns/versionConf/inviteIos/v2.json")
    
    
    
    lazy var sendRedPacketApi = String.BTappendUrl(str: "vdsns/memberV55/sendRedPacket/v2.json")
    
    
    
    lazy var receiveRedPacketApi = String.BTappendUrl(str: "vdsns/memberV55/receiveRedPacket/v2.json")
    
    lazy var propsListApi = String.BTappendUrl(str: "vdsns/props_center/getList/v2.json")
    
    lazy var payForPropsApi = String.BTappendUrl(str: "vdsns/props_center/buy/v2.json")
    
    
    lazy var bindShanyanMobileApi = String.BTappendUrl(str: "vdsns/basic/bindMobile/v2.json")
    
    lazy var tianStepLogApi = String.BTappendUrl(str: "vdsns/openData/registerStep/v2.json")
    
    lazy var registerFinishApi = String.BTappendUrl(str: "vdsns/basic/registerFinish/v2.json")
    lazy var todayMeetApi = String.BTappendUrl(str: "vdsns/memberV57/todayMeet/v2.json")
    
    lazy var todayFemaleMeetApi = String.BTappendUrl(str: "vdsns/memberV57/todayMeetWoman/v2.json")
    
    lazy var nearbyActiveApi = String.BTappendUrl(str: "vdsns/indexV32/nearbyActive/v2.json")
    
    
    lazy var getTalkCoinPriceApi = String.BTappendUrl(str: "vdsns/memberV63/getCoinPrice/v2.json")
    
    
    lazy var setTalkCoinPriceApi = String.BTappendUrl(str: "vdsns/memberV57/setTalkCoin/v2.json")
    
    lazy var setVoiceTalkCoinPriceApi = String.BTappendUrl(str: "vdsns/memberV63/setVoiceCoin/v2.json")
    
    lazy var setVideoTalkCoinPriceApi = String.BTappendUrl(str: "vdsns/memberV63/setVideoCoin/v2.json")
    
    lazy var setFreeTalkIntimacyApi = String.BTappendUrl(str: "vdsns/memberV65/setFreeTalkIntimacy/v2.json")
    
    
    
    lazy var sendAccostChatGift = String.BTappendUrl(str: "vdsns/giftV73/sendNewChatGift/v2.json")
    
    lazy var randomUserInfoApi = String.BTappendUrl(str: "vdsns/openData/getAutoInfo/v2.json")
    
    
    lazy var maleDefaultURL = Defaults[.QNResourcePrefix] + "/" + "man-6-5768322201605940524"
    
    lazy var femaleDefaultURL = Defaults[.QNResourcePrefix] + "/" + "man-7-2925107461605940581"
    
    
    lazy var createLiveRoomApi = String.BTappendUrl(str: "vdsns/roomV2/createRoom/v2.json")
    
    
    //    lazy var getAgoraTokenApi = String.BTappendUrl(str: "vdsns/spedMatchV84/getTokenByChannelName/v2.json")
    
    
    
    lazy var cancelMatchGameApi = String.BTappendUrl(str: "vdsns/spedMatchV79/cancel/v2.json")
    
    
    lazy var commentCurrentMatchGameApi = String.BTappendUrl(str: "vdsns/spedMatchV79/comment/v2.json")
    
    lazy var fetchSomeoneInfoApi = String.BTappendUrl(str: "vdsns/basic/getAvatarWithoutPrefix/v2.json")
    
    
    lazy var fetchRecommendLiveApi = String.BTappendUrl(str: "vdsns/spedMatchV84/getMatchList/v2.json")
    
    lazy var fetchLiveSameCityApi = String.BTappendUrl(str: "vdsns/spedMatchV84/sameCity/v2.json")
    
    
    lazy var roomRecommendLiveApi = String.BTappendUrl(str: "vdsns/room/getMatchList/v2.json")
    
    lazy var roomNearbyLiveApi = String.BTappendUrl(str: "vdsns/room/sameCity/v2.json")
    
    
    lazy var EngagementPrivateVoiceApi = String.BTappendUrl(str: "vdsns/spedMatchV80/voiceTalk/v2.json")
    
    lazy var EngagementPrivateVideoApi = String.BTappendUrl(str: "vdsns/spedMatchV80/videoTalk/v2.json")
    
    
    
    lazy var alternativeEngagementPrivateVoiceApi = String.BTappendUrl(str: "vdsns/spedMatchV90/voiceTalk/v2.json")
    
    lazy var alternativeEngagementPrivateVideoApi = String.BTappendUrl(str: "vdsns/spedMatchV90/videoTalk/v2.json")
    
    
    lazy var cancelInviteChatApi = String.BTappendUrl(str: "vdsns/spedMatchV80/talkCancel/v2.json")
    
    lazy var setWeChatApi = String.BTappendUrl(str: "vdsns/memberV64/setWeChat/v2.json")
    
    //    lazy var getMatchListApi = String.BTappendUrl(str: "vdsns/spedMatchV79/getMatchList/v2.json")
    
    lazy var joinChatApi = String.BTappendUrl(str: "vdsns/spedMatchV79/matchPoint/v2.json")
    
    lazy var removeFromBlackListApi = String.BTappendUrl(str: "vdsns/memberV67/removeBlacklist/v2.json")
    
    lazy var fateNewListApi = String.BTappendUrl(str: "vdsns/memberV67/todayMeet/v2.json")
    
    lazy var sendChatGiftFreeApi = String.BTappendUrl(str: "vdsns/giftV57/sendChatGiftFree/v2.json")
    
    lazy var getRecommendOneApi = String.BTappendUrl(str: "vdsns/spedMatchV79/getRecommendOne/v2.json")
    
    
    lazy var saveLocApi = String.BTappendUrl(str: "vdsns/basic/saveLocation/v2.json")
    
    lazy var setAutoSendMsgApi = String.BTappendUrl(str: "vdsns/memberV67/setAutoSendMsg/v2.json")
    
    lazy var sendAutoSayHiMsgApi = String.BTappendUrl(str: "vdsns/memberV67/sendAutoMsg/v2.json")
    
    lazy var chatLogApi = String.BTappendUrl(str: "vdsns/spedLog/info/v2.json")
    
    lazy var geocodeApi = "https://restapi.amap.com/v3/geocode/regeo"
    
    lazy var searchPlaceApi = "https://restapi.amap.com/v3/place/text"
    
    lazy var settingNoticeApi = String.BTappendUrl(str: "vdsns/memberV71/setNoticeSwitch/v2.json")
    
    
    lazy var subCoinApi = String.BTappendUrl(str: "vdsns/spedMatchV79/subCoinV3/v2.json")
    
    
    lazy var niuCloudConfigApi = String.BTappendUrl(str: "vdsns/qiNiuConf/getCompression/v2.json")
    
    lazy var roomThemeConfigApi = String.BTappendUrl(str: "vdsns/room/theme/v2.json")
    
    lazy var requestAutoChatGiftApi = String.BTappendUrl(str: "vdsns/basicV67/sendAutoChatGift/v2.json")
    
    
    lazy var changeLiveBeautyStatusApi = String.BTappendUrl(str: "vdsns/spedMatchV84/changeStatus/v2.json")
    
    lazy var fetchSettingBeautyChannelApi = String.BTappendUrl(str: "vdsns/spedMatchV79/getBeauty/v2.json")
    
    lazy var fetchTargetPriceApi = String.BTappendUrl(str: "vdsns/TargetMember/getCoinPrice/v2.json")
    
    lazy var countOfLivePoolsApi = String.BTappendUrl(str: "vdsns/spedMatchV83/cpCount/v2.json")
    
    lazy var countOfActiveMemberApi = String.BTappendUrl(str: "vdsns/spedMatchV84/activeMember/v2.json")
    
    
    lazy var firstChargeApi = String.BTappendUrl(str: "vdsns/payOrderV72/getAppleCoinPriceV2/v2.json")
    
    
    lazy var currIntimacyProgressApi = String.BTappendUrl(str: "vdsns/giftV83/intimacyProgressBar/v2.json")
    
    lazy var tainBigHeartApi = String.BTappendUrl(str: "vdsns/kind/tainBigHeart/v2.json")
    //    MARK:  -Shumei
    lazy var startShumeiVoiceStreamApi = String.BTappendUrl(str: "vdsns/room/getShumeiVoiceSteam/v2.json")
    
    lazy var startShumeiVideoStreamApi = String.BTappendUrl(str: "vdsns/room/getShumeiVideoSteam/v2.json")
    
    lazy var endShumeiVoiceStreamApi = String.BTappendUrl(str: "vdsns/room/voiceSteamStop/v2.json")
    
    lazy var endShumeiVideoStreamApi = String.BTappendUrl(str: "vdsns/room/videoSteamStop/v2.json")
    
    
    lazy var shumeiCheckImageApi = String.BTappendUrl(str: "vdsns/shumeiV65/shumeiImg/v2.json")
    
    lazy var shumeiCheckVoiceApi = String.BTappendUrl(str: "vdsns/shumeiV65/shumeiVoice/v2.json")
    
    lazy var shumeiCheckVideoApi = String.BTappendUrl(str: "vdsns/shumeiV65/shumeiVideo/v2.json")
    
    lazy var shumeiSendMsgInformApi = String.BTappendUrl(str: "vdsns/room/sendMsgInform/v2.json")
    
    lazy var shumeiFetchUserStatusApi = String.BTappendUrl(str: "vdsns/member/statusList/v2.json")
    
    
    //    MARK: - 3.0.5
    lazy var uploadRoomCoverApi = String.BTappendUrl(str: "vdsns/upload/cover/v2.json")
    
    lazy var getGiftRankByTypeApi = String.BTappendUrl(str: "vdsns/rank/index/v2.json")
    
    lazy var voiceGrouproomThemeConfigApi = String.BTappendUrl(str: "vdsns/voiceRoom/theme/v2.json")
    
    lazy var provideContentAfterPaySuccessApi = String.BTappendUrl(str: "vdsns/payOrderV73/getMember/v2.json")
    
    
    lazy var voiceRoomListApi = String.BTappendUrl(str: "vdsns/voiceRoom/index/v2.json")
    
    lazy var joinVoiceGroupApi = String.BTappendUrl(str: "vdsns/voiceRoomV1/addRoom/v2.json")
    
    lazy var voiceRoomUserInfoApi = String.BTappendUrl(str: "vdsns/VoiceRoomUser/home/v2.json")
    
    
    lazy var fetchAudiencesApi = String.BTappendUrl(str: "vdsns/voiceRoomUser/userCache/v2.json")
    
    lazy var getoutFromRoomApi = String.BTappendUrl(str: "vdsns/VoiceRoomUser/forbid/v2.json")
    
    lazy var voiceRoomCommandApi = String.BTappendUrl(str: "vdsns/voiceRoomUser/sendRoomCommand/v2.json")
    
    lazy var setPrivacyVoiceRoomApi = String.BTappendUrl(str: "vdsns/voiceRoom/privacy/v2.json")
    
    
    lazy var closeVoiceRoomApi = String.BTappendUrl(str: "vdsns/voiceRoom/close/v2.json")
    
    
    
    lazy var sendVoiceRoomBarrageApi = String.BTappendUrl(str: "vdsns/voiceRoomUser/barrage/v2.json")
    
    
    lazy var modifyVoiceRoomApi = String.BTappendUrl(str: "vdsns/voiceRoom/update/v2.json")
    
    
    lazy var nobilityListApi = String.BTappendUrl(str: "vdsns/nobility/index/v2.json")
    
    //    MARK: - 3.1.4
    lazy var quickMessageListApi = String.BTappendUrl(str: "vdsns/greet/index/v2.json")
    
    lazy var addQuickMessageListApi = String.BTappendUrl(str: "vdsns/greet/add/v2.json")
    
    lazy var deleteQuickMessageListApi = String.BTappendUrl(str: "vdsns/greet/isDel/v2.json")
    
    
    
    lazy var setRoomDivideApi = String.BTappendUrl(str: "vdsns/voiceRoomV1/divide/v2.json")
    
    lazy var setRoomAnnouncementApi = String.BTappendUrl(str: "vdsns/affiche/edit/v2.json")
    
    lazy var fetchRoomAnnouncementApi = String.BTappendUrl(str: "vdsns/affiche/index/v2.json")
    
    
    
    lazy var recentCallsListApi = String.BTappendUrl(str: "vdsns/chatRecord/index/v2.json")
    
    lazy var appendRecentCallApi = String.BTappendUrl(str: "vdsns/chatRecord/addRecord/v2.json")
    
    lazy var reCallApi = String.BTappendUrl(str: "vdsns/chatRecord/setBackCall/v2.json")
    
    lazy var fetchBannerApi = String.BTappendUrl(str: "/vdsns/banner/index/v2.json")
    
    
    lazy var fetchStatusOFZLBApi = String.BTappendUrl(str: "vdsns/zhonglebang/getAuthStatus/v2.json")
    
    lazy var getZLBH5URLApi = String.BTappendUrl(str: "vdsns/zhonglebang/getH5Url/v2.json")
    
    lazy var registZLBApi = String.BTappendUrl(str: "vdsns/zhonglebang/register/v2.json")
    
    lazy var fetchDailyRewardsApi = String.BTappendUrl(str: "vdsns/award/list/v2.json")
    
    lazy var receiveRewardsApi = String.BTappendUrl(str: "vdsns/award/receive/v2.json")
    
    
    lazy var receiveTimedRewardsApi = String.BTappendUrl(str: "vdsns/award/yearAward/v2.json")
    
    lazy var reportSharedApi = String.BTappendUrl(str: "vdsns/award/storeShare/v2.json")
    
    lazy var reportStartUpApi = String.BTappendUrl(str: "vdsns/startUp/index/v2.json")
    
    lazy var pushTalkingLogApi = String.BTappendUrl(str: "vdsns/matchReport/insert/v2.json")
    
    lazy var pushTalkingLogV2Api = String.BTappendUrl(str: "vdsns/netease/startAudit/v2.json")
    
    lazy var pushTalkingLogEndV2Api = String.BTappendUrl(str: "vdsns/netease/endAudit/v2.json")
    
    lazy var registerSetpBeforeLogApi = String.BTappendUrl(str: "vdsns/basePoint/index/v2.json")
    
    lazy var registerSetpAfterLogApi = String.BTappendUrl(str: "vdsns/basic/basePoint/v2.json")
    
    
    lazy var awardTriggerApi = String.BTappendUrl(str: "vdsns/award/trigger/v2.json")
    
    lazy var settingRemarkApi = String.BTappendUrl(str: "vdsns/memberRemark/add/v2.json")
    
    lazy var checkSendConfineApi = String.BTappendUrl(str: "vdsns/shumeiV67/canSendMsg/v2.json")
    
    lazy var checkNewConfineApi = String.BTappendUrl(str: "vdsns/basic/iosConf/v2.json")
    
    lazy var onlineHeartDanceApi = String.BTappendUrl(str: "vdsns/basic/isOnline/v2.json")
    
    lazy var beautyDanceApi = String.BTappendUrl(str: "vdsns/spedMatchV80/beauty/v2.json")
    
    //MARK: - 用户协议 隐私政策 等 HTML URL
    
    lazy var userProtocolURL = String.BTappendUrl(str: "vdsns/protocol/userProtocolAppleTaPei/v1.json")
    
    lazy var integralProtocolURL = String.BTappendUrl(str: "vdsns/protocol/integralTaPei/v1.json")
    
    
    lazy var privacyProtocolURL = String.BTappendUrl(str: "vdsns/protocol/privacyProtocolAppleTaPei/v1.json")
    
    lazy var serviceProtocolURL = String.BTappendUrl(str: "vdsns/protocol/valueAddProtocolAppleTaPei/v1.json")
    
    
    
    lazy var userShareProtocolURL = String.BTappendUrl(str: "vdsns/protocol/interactAward/v1.json")
    
    
    
    lazy var userRechargeProtocolURL = String.BTappendUrl(str: "vdsns/protocol/recharge/v1.json")
    
    lazy var aboutUSURL = String.BTappendUrl(str: "vdsns/protocol/aboutAppleTaPei/v1.json")
    
    
    lazy var authCodeHtml = String.BTappendUrl(str: "auth_code.html?appname=伴心")
    
    lazy var helpPayHtml = String.BTappendUrl(str: "help_pay.html?appname=伴心")
    
    lazy var phoneLoginHtml = String.BTappendUrl(str: "phone_login.html?appname=伴心")
    
    lazy var qqLoginHtml = String.BTappendUrl(str: "qq_login.html?appname=伴心")
    
    lazy var wechatLogHtml = String.BTappendUrl(str: "wechat_log.html?appname=伴心")
    
    lazy var tipsStepHtml = String.BTappendUrl(str: "wx/step/click")
    
    lazy var commonQuestion = String.BTappendUrl(str: "vdsns/issueCfg/list/v2.json")
}


